package com.example.cloudindex.web.impl;

import com.example.cloudindex.entity.User;
import com.example.cloudindex.web.IOrderAction;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OrderActionImpl implements IOrderAction {
    @Override
    public String order() {
        return " 降级后的 order";
    }

    @Override
    public String hello(String name) {
        return "你好 " + name;
    }

    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public User user(User user) {
        user.setId(user.getId() + 100);
        user.setName(user.getName() + " 降级");
        return user;
    }

}
